﻿@model Tecnosop.WebUI.Models.InsumoViewModel
@{
    ViewBag.Title = "Editar un insumo";
    Layout = "~/Views/Insumo/_LayoutInsumo.cshtml";
}
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Datos insumo</legend>

        <div class="editor-label">@Html.LabelFor(model => model.CODIGO_ITEM)</div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.CODIGO_ITEM)
            @Html.DisplayFor(model => model.CODIGO_ITEM)
        </div>

        <div class="editor-label">@Html.LabelFor(model => model.TIPO)</div>
        <div class="editor-field">
            @*@Html.EditorFor(model => model.TIPO)*@
            @*@Html.DropDownList("TIPO1", String.Empty)*@
            @(Html.Telerik().DropDownList()
                .Name("TIPO")
                .SelectedIndex(0)
                .BindTo(ViewBag.TIPO1)
            )
            @Html.ValidationMessageFor(model => model.TIPO)
        </div>

        @*<div class="editor-label">
            @Html.LabelFor(model => model.UNIDAD)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UNIDAD)
            @Html.ValidationMessageFor(model => model.UNIDAD)
        </div>*@

        <div class="editor-label">
            @Html.LabelFor(model => model.PRECIO)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PRECIO)
            @Html.ValidationMessageFor(model => model.PRECIO)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MARCA)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MARCA)
            @Html.ValidationMessageFor(model => model.MARCA)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MODELO)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MODELO)
            @Html.ValidationMessageFor(model => model.MODELO)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BLANCO_Y_NEGRO)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BLANCO_Y_NEGRO)
            @Html.ValidationMessageFor(model => model.BLANCO_Y_NEGRO)
        </div>

        <br />
        <hr />
        <p>
            <button type="submit" class="nice radius small green button">Guardar Cambios</button>
            @*<button type="button" class="nice radius small blue button" onclick="history.back()">Cancelar</button>*@
            @Html.ActionLink("Cancelar", MVC.Insumo.Index(), new { @class = "nice radius small red button" })
        </p>
    </fieldset>
}